<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OsinfoResources: Libosinfo Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Libosinfo Reference Manual">
<link rel="up" href="ch01.html" title="Libosinfo">
<link rel="prev" href="OsinfoMediaList.html" title="OsinfoMediaList">
<link rel="next" href="OsinfoResourcesList.html" title="OsinfoResourcesList">
<meta name="generator" content="GTK-Doc V1.29 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#OsinfoResources.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#OsinfoResources.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#OsinfoResources.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="OsinfoMediaList.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="OsinfoResourcesList.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="OsinfoResources"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="OsinfoResources.top_of_page"></a>OsinfoResources</span></h2>
<p>OsinfoResources — Required or recommended resources for an (guest) OS</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="OsinfoResources.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="returnvalue">OsinfoResources</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-new" title="osinfo_resources_new ()">osinfo_resources_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-get-architecture" title="osinfo_resources_get_architecture ()">osinfo_resources_get_architecture</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-get-n-cpus" title="osinfo_resources_get_n_cpus ()">osinfo_resources_get_n_cpus</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-get-cpu" title="osinfo_resources_get_cpu ()">osinfo_resources_get_cpu</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-get-ram" title="osinfo_resources_get_ram ()">osinfo_resources_get_ram</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-get-storage" title="osinfo_resources_get_storage ()">osinfo_resources_get_storage</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-set-n-cpus" title="osinfo_resources_set_n_cpus ()">osinfo_resources_set_n_cpus</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-set-cpu" title="osinfo_resources_set_cpu ()">osinfo_resources_set_cpu</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-set-ram" title="osinfo_resources_set_ram ()">osinfo_resources_set_ram</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="OsinfoResources.html#osinfo-resources-set-storage" title="osinfo_resources_set_storage ()">osinfo_resources_set_storage</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoResources.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="OsinfoResources.html#OsinfoResources--architecture" title="The “architecture” property">architecture</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
<td class="property_name"><a class="link" href="OsinfoResources.html#OsinfoResources--cpu" title="The “cpu” property">cpu</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="OsinfoResources.html#OsinfoResources--n-cpus" title="The “n-cpus” property">n-cpus</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
<td class="property_name"><a class="link" href="OsinfoResources.html#OsinfoResources--ram" title="The “ram” property">ram</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
<td class="property_name"><a class="link" href="OsinfoResources.html#OsinfoResources--storage" title="The “storage” property">storage</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoResources.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-ARCHITECTURE-ALL:CAPS" title="OSINFO_ARCHITECTURE_ALL">OSINFO_ARCHITECTURE_ALL</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-MEGAHERTZ:CAPS" title="OSINFO_MEGAHERTZ">OSINFO_MEGAHERTZ</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-KIBIBYTES:CAPS" title="OSINFO_KIBIBYTES">OSINFO_KIBIBYTES</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-MEBIBYTES:CAPS" title="OSINFO_MEBIBYTES">OSINFO_MEBIBYTES</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-GIBIBYTES:CAPS" title="OSINFO_GIBIBYTES">OSINFO_GIBIBYTES</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-RESOURCES-PROP-ARCHITECTURE:CAPS" title="OSINFO_RESOURCES_PROP_ARCHITECTURE">OSINFO_RESOURCES_PROP_ARCHITECTURE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-RESOURCES-PROP-CPU:CAPS" title="OSINFO_RESOURCES_PROP_CPU">OSINFO_RESOURCES_PROP_CPU</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-RESOURCES-PROP-N-CPUS:CAPS" title="OSINFO_RESOURCES_PROP_N_CPUS">OSINFO_RESOURCES_PROP_N_CPUS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-RESOURCES-PROP-RAM:CAPS" title="OSINFO_RESOURCES_PROP_RAM">OSINFO_RESOURCES_PROP_RAM</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoResources.html#OSINFO-RESOURCES-PROP-STORAGE:CAPS" title="OSINFO_RESOURCES_PROP_STORAGE">OSINFO_RESOURCES_PROP_STORAGE</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoResources.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> <a class="link" href="OsinfoEntity.html" title="OsinfoEntity">OsinfoEntity</a>
        <span class="lineart">╰──</span> OsinfoResources
</pre>
</div>
<div class="refsect1">
<a name="OsinfoResources.description"></a><h2>Description</h2>
<p><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> is an entity representing required or recommended resources
for an (guest) operating system.</p>
</div>
<div class="refsect1">
<a name="OsinfoResources.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="osinfo-resources-new"></a><h3>osinfo_resources_new ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="returnvalue">OsinfoResources</span></a> *
osinfo_resources_new (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>,
                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *architecture</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-get-architecture"></a><h3>osinfo_resources_get_architecture ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_resources_get_architecture (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>);</pre>
<p>Retrieves the target hardware architecture to which <em class="parameter"><code>resources</code></em>
 applies. Some
operating systems specify the same requirements and recommendations for all
architectures. In such cases, the string returned by this call will be
<a class="link" href="OsinfoResources.html#OSINFO-ARCHITECTURE-ALL:CAPS" title="OSINFO_ARCHITECTURE_ALL"><span class="type">OSINFO_ARCHITECTURE_ALL</span></a>.</p>
<div class="refsect3">
<a name="osinfo-resources-get-architecture.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-resources-get-architecture.returns"></a><h4>Returns</h4>
<p>the hardware architecture. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-get-n-cpus"></a><h3>osinfo_resources_get_n_cpus ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
osinfo_resources_get_n_cpus (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>);</pre>
<p>Retrieves the number of CPUs.</p>
<div class="refsect3">
<a name="osinfo-resources-get-n-cpus.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-resources-get-n-cpus.returns"></a><h4>Returns</h4>
<p> the number of CPUs, or -1.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-get-cpu"></a><h3>osinfo_resources_get_cpu ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
osinfo_resources_get_cpu (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>);</pre>
<p>Retrieves the CPU frequency in hertz (Hz). Divide the value by <a class="link" href="OsinfoResources.html#OSINFO-MEGAHERTZ:CAPS" title="OSINFO_MEGAHERTZ"><span class="type">OSINFO_MEGAHERTZ</span></a> if
you need this value in megahertz (MHz).</p>
<div class="refsect3">
<a name="osinfo-resources-get-cpu.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-resources-get-cpu.returns"></a><h4>Returns</h4>
<p> the CPU frequency, or -1.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-get-ram"></a><h3>osinfo_resources_get_ram ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
osinfo_resources_get_ram (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>);</pre>
<p>Retrieves the amount of Random Access Memory (RAM) in bytes. Divide the value
by <a class="link" href="OsinfoResources.html#OSINFO-MEBIBYTES:CAPS" title="OSINFO_MEBIBYTES"><span class="type">OSINFO_MEBIBYTES</span></a> if you need this value in mebibytes.</p>
<div class="refsect3">
<a name="osinfo-resources-get-ram.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-resources-get-ram.returns"></a><h4>Returns</h4>
<p> the amount of RAM, or -1.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-get-storage"></a><h3>osinfo_resources_get_storage ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
osinfo_resources_get_storage (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>);</pre>
<p>Retrieves the amount of storage space in bytes. Divide the value by
<a class="link" href="OsinfoResources.html#OSINFO-GIBIBYTES:CAPS" title="OSINFO_GIBIBYTES"><span class="type">OSINFO_GIBIBYTES</span></a> if you need this value in gibibytes.</p>
<div class="refsect3">
<a name="osinfo-resources-get-storage.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-resources-get-storage.returns"></a><h4>Returns</h4>
<p> the amount of storage, or -1.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-set-n-cpus"></a><h3>osinfo_resources_set_n_cpus ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_resources_set_n_cpus (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>,
                             <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_cpus</code></em>);</pre>
<p>Sets the number of CPUs.</p>
<div class="refsect3">
<a name="osinfo-resources-set-n-cpus.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n_cpus</p></td>
<td class="parameter_description"><p>the number of CPUs</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-set-cpu"></a><h3>osinfo_resources_set_cpu ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_resources_set_cpu (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>,
                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> cpu</code></em>);</pre>
<p>Sets the CPU frequency.</p>
<div class="refsect3">
<a name="osinfo-resources-set-cpu.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cpu</p></td>
<td class="parameter_description"><p>the CPU frequency in hertz (Hz)</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-set-ram"></a><h3>osinfo_resources_set_ram ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_resources_set_ram (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>,
                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> ram</code></em>);</pre>
<p>Sets the amount of RAM in bytes.</p>
<div class="refsect3">
<a name="osinfo-resources-set-ram.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ram</p></td>
<td class="parameter_description"><p>the amount of ram in bytes</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-resources-set-storage"></a><h3>osinfo_resources_set_storage ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
osinfo_resources_set_storage (<em class="parameter"><code><a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> *resources</code></em>,
                              <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> storage</code></em>);</pre>
<p>Sets the amount of storage space.</p>
<div class="refsect3">
<a name="osinfo-resources-set-storage.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>resources</p></td>
<td class="parameter_description"><p>an <a class="link" href="OsinfoResources.html" title="OsinfoResources"><span class="type">OsinfoResources</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>storage</p></td>
<td class="parameter_description"><p>the amount of storage in bytes</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="OsinfoResources.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="OSINFO-ARCHITECTURE-ALL:CAPS"></a><h3>OSINFO_ARCHITECTURE_ALL</h3>
<pre class="programlisting">#define OSINFO_ARCHITECTURE_ALL "all"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-MEGAHERTZ:CAPS"></a><h3>OSINFO_MEGAHERTZ</h3>
<pre class="programlisting">#define OSINFO_MEGAHERTZ        1000000
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-KIBIBYTES:CAPS"></a><h3>OSINFO_KIBIBYTES</h3>
<pre class="programlisting">#define OSINFO_KIBIBYTES        1024
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-MEBIBYTES:CAPS"></a><h3>OSINFO_MEBIBYTES</h3>
<pre class="programlisting">#define OSINFO_MEBIBYTES        1048576
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-GIBIBYTES:CAPS"></a><h3>OSINFO_GIBIBYTES</h3>
<pre class="programlisting">#define OSINFO_GIBIBYTES        1073741824
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-RESOURCES-PROP-ARCHITECTURE:CAPS"></a><h3>OSINFO_RESOURCES_PROP_ARCHITECTURE</h3>
<pre class="programlisting">#define OSINFO_RESOURCES_PROP_ARCHITECTURE "architecture"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-RESOURCES-PROP-CPU:CAPS"></a><h3>OSINFO_RESOURCES_PROP_CPU</h3>
<pre class="programlisting">#define OSINFO_RESOURCES_PROP_CPU          "cpu"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-RESOURCES-PROP-N-CPUS:CAPS"></a><h3>OSINFO_RESOURCES_PROP_N_CPUS</h3>
<pre class="programlisting">#define OSINFO_RESOURCES_PROP_N_CPUS       "n-cpus"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-RESOURCES-PROP-RAM:CAPS"></a><h3>OSINFO_RESOURCES_PROP_RAM</h3>
<pre class="programlisting">#define OSINFO_RESOURCES_PROP_RAM          "ram"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-RESOURCES-PROP-STORAGE:CAPS"></a><h3>OSINFO_RESOURCES_PROP_STORAGE</h3>
<pre class="programlisting">#define OSINFO_RESOURCES_PROP_STORAGE      "storage"
</pre>
</div>
</div>
<div class="refsect1">
<a name="OsinfoResources.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="OsinfoResources--architecture"></a><h3>The <code class="literal">“architecture”</code> property</h3>
<pre class="programlisting">  “architecture”             <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>The target hardware architecture to which these resources applies.</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="OsinfoResources--cpu"></a><h3>The <code class="literal">“cpu”</code> property</h3>
<pre class="programlisting">  “cpu”                      <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
<p>The CPU frequency in hertz (Hz).</p>
<p>Flags: Read / Write</p>
<p>Allowed values: [-1,2147483647]</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2">
<a name="OsinfoResources--n-cpus"></a><h3>The <code class="literal">“n-cpus”</code> property</h3>
<pre class="programlisting">  “n-cpus”                   <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The number of CPUs.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2">
<a name="OsinfoResources--ram"></a><h3>The <code class="literal">“ram”</code> property</h3>
<pre class="programlisting">  “ram”                      <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
<p>The amount of Random Access Memory (RAM) in bytes.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2">
<a name="OsinfoResources--storage"></a><h3>The <code class="literal">“storage”</code> property</h3>
<pre class="programlisting">  “storage”                  <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
<p>The amount of storage space in bytes.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
</div>
</div>
<div class="refsect1">
<a name="OsinfoResources.see-also"></a><h2>See Also</h2>
<p><a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="type">OsinfoOs</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.29</div>
</body>
</html>